<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Pragma" content="no-cache" />
		<title>订单管理</title>
		<%@ include file="/user_comm.jsp"%>
		<link rel="stylesheet"
			href="http://a.tbcdn.cn/apps/sell/1.0/publish_detail_ke.css?t=20110128editor.css" />
		<link href="<%=request.getContextPath()%>/css/prop.css"
			type="text/css" rel="stylesheet" />
		<!-- script start -->

		<!-- script end -->
	</head>
	<body>
		<%@ include file="/user_top.jsp"%>
		<div class="realCer">
			<!--导航-->
			<!--主体部分start-->
			<div class="realMain clearfix mt10">
				<%@ include file="/user_menu.jsp"%>
				<div class="realRight ml10 Buyer">
					<div class="mybox">
						<div class="mytit">
							订单管理
						</div>
						<div class="con Orbuy">
							<s:form name="formpage" action="order_listUserOrder" namespace="/">
								<%@ include file="/messages.jsp"%>
								<div class="pCenter">
									<!-- 
									<div class="at_tab_t">
									</div>
									<div>
										<div class="search_bcontrol">
											订单日期：<input type="text" id="beginDate"
												name="orderInfoDto.beginDate"
												value='<s:date name="#request.orderInfoDto.beginDate" format="yyyy-MM-dd" />'
												size="15"
												onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})"
												style="WIDTH: 120px; border: #999 1px solid; height: 20px; background: #fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif ) no-repeat right;" />
											至
											<input type="text" id="endDate" name="orderInfoDto.endDate"
												value='<s:date name="#request.orderInfoDto.endDate" format="yyyy-MM-dd" />'
												size="15"
												onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})"
												style="WIDTH: 120px; border: #999 1px solid; height: 20px; background: #fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif ) no-repeat right;" />
											<button type="submit" class="J_MakePoint btn search-btn">
												搜索
											</button>
										</div>
									</div>
 									-->
 									
									<table class="favorRwList mt5">
										<tr>
											<th class="title">
												订单号
											</th>
											<th class="title">
												订单日期
											</th>
											<th class="title">
												产品名称
											</th>
											<th class="title">
												型号
											</th>
											<th class="title">
												订购数量
											</th>
											<th class="title">
												订单金额
											</th>
											<th class="title">
												订单状态
											</th>
											<th class="title">
												操作
											</th>

										</tr>
										<s:iterator value="#request.orderList" id="ca">
											<tr>
												<td>
													<a
														href="<s:url action="order_custViewPage">
														<s:param name="orderId"><s:property value="#ca.id"/></s:param>
														</s:url>">
														<s:property value="#ca.id" /> </a>
												</td>
												<td>
													<s:date name="#ca.createDate" format="yyyy-MM-dd HH:mm" />
												</td>
												<td>
													<s:property value="#ca.productName" />
												</td>
												<td>
													<s:property value="#ca.type" />
												</td>
												<td>
													<s:property value="#ca.amount" />
												</td>
												<td align="center">
													<s:property value="#ca.totalprice" />
												</td>
												<td align="center">
													<s:property value="showStatus(#ca.status)" />
												</td>
												<td align="center">
													<!-- 处于待审核时，用户可取消订单 -->
													<s:if test='"A00"== #ca.status'>
														<a
															href="<s:url action="order_cancelOrder"><s:param name="orderId"><s:property value="#ca.id"/></s:param></s:url>">
															撤消订单 </a>
													</s:if>
													<a
														href="<s:url action="order_custViewPage">
													<s:param name="orderId"><s:property value="#ca.id"/></s:param>
														</s:url>">
														查看 </a>
												</td>
											</tr>
										</s:iterator>
										<s:if test="#request.orderList.size()==0">
											<tr>
												<td colspan="8">
													<span class='orange1 ml5'>没有满足条件的记录</span>
												</td>
											</tr>
										</s:if>
									</table>
									<s:property value="#request.allowpage" escape="false" />
								</div>
							</s:form>
						</div>
					</div>
					<div>
					</div>
					<!--主体部分end-->
				</div>
			</div>
		</div>
		<!--底部 start-->
		<%@ include file="/user_button.jsp"%>
		<!--底部end-->
	</body>
</html>
